package com.scau.clothes.dao;

import com.scau.clothes.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserDao {
    void addUser(User user);
    User getUserByUserId(@Param("userId") int userId, @Param("password") String password);
    User getUserByEmail(@Param("email") String email,@Param("password")String password);
    String getEmailById(@Param("userId")int userId);
}
